﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SFlowerNoticeMsg extends IMessageBase
    {
        public var fromPlayer:String;
        public var toPlayer:String;
        public var itemCode:int;
        public var anonymous:Boolean;
        public const _type:int = 202;
        public static var _regist:SFlowerNoticeMsg = new SFlowerNoticeMsg(true);

        public function SFlowerNoticeMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SFlowerNoticeMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.fromPlayer);
            param1.writeString(this.toPlayer);
            param1.writeInt(this.itemCode);
            param1.writeBool(this.anonymous);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.fromPlayer = param1.readString();
            this.toPlayer = param1.readString();
            this.itemCode = param1.readInt();
            this.anonymous = param1.readBool();
            return;
        }// end function

    }
}
